package com.yuantu.judiciary.model.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 组织类型
 *
 * @author syw
 * @since 2023-08-03
 **/
@Getter
@AllArgsConstructor
public enum OrganizationType {

    /**
     * 个体
     */
    SINGLE,
    /**
     * 企业
     */
    ENTER,
    /**
     * 支付宝小程序
     */
    ALIPAY,

    PROVINCE,
    AGENT,
    H5
    ;

    public static OrganizationType getValue(String code) {
        for (OrganizationType elem : OrganizationType.values()) {
            if (elem.name().equals(code)) {
                return elem;
            }
        }
        return null;
    }

}
